<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "yl_carousel".
 *
 * @property integer $car_id
 * @property string $car_pic_url
 * @property string $car_link
 * @property string $car_time
 */
class CwCarousel extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cw_carousel';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['car_pic_url', 'car_link', 'car_time'], 'required'],
            [['car_pic_url', 'car_link', 'car_time'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'car_id' => 'Car ID',
            'car_pic_url' => '文件路径',
            'car_link' => '超链接',
            'car_time' => '编辑时间',
        ];
    }
}
